# -*- coding: utf-8 -*-

# pip install pyyaml
import yaml

if __name__ == '__main__':
    with open(file='xxx.yaml') as file:
        data = file.read()
        pass

    data_dict = yaml.load(data, Loader=yaml.FullLoader)

    pass
